﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Microsoft.JCI.Bll;

namespace Microsoft.JCI.Portal.UserControl
{
    public partial class FormTypeMaintain : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                InitPage();
            }
        }

        public void InitPage()
        {
            SystemBll bll = new SystemBll();
            ddlM_IssueSource.DataSource = bll.GetDictionaryListFromCache(Microsoft.JCI.Common.Utility.Enumerator.DictionaryType.MaintainIssueSource);
            ddlM_IssueSource.DataTextField = "Value";
            ddlM_IssueSource.DataValueField = "DictionaryID";
            ddlM_IssueSource.DataBind();

            ddlM_MaintainType.DataSource = bll.GetDictionaryListFromCache(Microsoft.JCI.Common.Utility.Enumerator.DictionaryType.MaintainType);
            ddlM_MaintainType.DataTextField = "Value";
            ddlM_MaintainType.DataValueField = "DictionaryID";
            ddlM_MaintainType.DataBind();
        }
    }
}